import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'tabBar',
    component: () => import('../views/navBar'),
    redirect: '/market', 
    children: [
      {
        path: '/market',
        name: 'market',
        component: () => import('../views/market')
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login')
  },
  {
    path: '/contentSet',
    name: 'contentSet',
    component: () => import('../views/contentSet')
  }
]

const router = new VueRouter({
  routes
})

export default router
